#include <stdio.h>

int main () {
	int a = 1025;
	int *p = &a;
	printf("Size of interger is %d bytes\n", sizeof(int));
	printf("Address =%d,Value =%d \n", p, *p);
	printf("Address =%d,Value =%d \n", p + 1, *(p + 1));
	char *p0;
	p0 = (char *)p;
	printf("Size of interger is %d bytes\n", sizeof(char));
	printf("Address =%d,Value =%d \n", p0, *p0);
	printf("Address =%d,Value =%d \n", p0 + 1, *(p0 + 1));
	// 1025 = 00000000(3bytes) 00000000(2bytes) 00000100(1bytes) 00000001(0bytes);
	// char = 1bytes ->00000001(0bytes)-> 1
	// char = p0 + 1->00000100(1bytes)->2^2 = 4

//	Size of interger is 4 bytes
//	Address =6422028,Value =1025
//	Size of interger is 1 bytes
//	Address =6422028,Value =1
//  Address =6422029,Value =4
}